package com.dd.ent.car.common.util;

import android.graphics.Bitmap;
import android.media.MediaMetadataRetriever;

/**
 * Created by dengqu on 17/10/1.
 */

public class MediaUtil {
    public static Bitmap getVideoFrame(String videoPath) {
        MediaMetadataRetriever media = new MediaMetadataRetriever();
        media.setDataSource(videoPath);
        Bitmap bitmap = media.getFrameAtTime();
        return bitmap;
    }
}
